package com.ssy.lingxi.logistics.api.dto.request;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * 订单商品请求实体类
 * @author yzc
 * @version 2.0.0
 * @date 2020/9/17
 */
public class TransferOrderFreightRequest implements Serializable {
    private static final long serialVersionUID = -3379031130886864127L;

    /**
     * 订单id
     */
    @NotNull(message = "订单id不能为空")
    private Long orderId;

    /**
     * 会员id
     */
    @NotNull(message = "会员id不能为空")
    private Long memberId;

    /**
     * 角色id
     */
    @NotNull(message = "角色id不能为空")
    private Long roleId;

    /**
     * 收货地址id
     */
    @NotNull(message = "收货地址id不能为空")
    private Long receiverAddressId;

    /**
     * 订单商品集合
     */
    @NotEmpty(message = "订单商品集合不能为空")
    @Valid
    private List<ProductFreightDetail> productFreightDetailList;

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Long getReceiverAddressId() {
        return receiverAddressId;
    }

    public void setReceiverAddressId(Long receiverAddressId) {
        this.receiverAddressId = receiverAddressId;
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public List<ProductFreightDetail> getProductFreightDetailList() {
        return productFreightDetailList;
    }

    public void setProductFreightDetailList(List<ProductFreightDetail> productFreightDetailList) {
        this.productFreightDetailList = productFreightDetailList;
    }
}
